/**
 * 
 */
package com.thor.palmmall.spi.device.inspect;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.palmmall.spi.common.SOperateInfo;
import com.thor.palmmall.spi.common.SQueryResult;
import com.thor.palmmall.spi.common.SResponse;
import com.thor.palmmall.spi.common.SUserGroupLoadParam;
import com.thor.palmmall.spi.device.SDeviceInspect;

/**
 * @author Captain
 *
 * @since 1.0
 */
@Path("/1/device/inspect")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface SDeviceInspectService {

  @POST
  @Path(value = "/create")
  SResponse<String> create(SDeviceInspect bill, @QueryParam("") SOperateInfo operInfo);

  @POST
  @Path(value = "/{id}")
  SResponse<SDeviceInspect> get(@PathParam("id") String id, SUserGroupLoadParam param);

  @POST
  @Path(value = "/save")
  SResponse<String> save(SDeviceInspect bill, @QueryParam("") SOperateInfo operInfo);

  @POST
  @Path(value = "/query")
  SResponse<SQueryResult<SDeviceInspect>> query(SDeviceInspectQueryParam queryParam);

  @GET
  @Path(value = "/queryOutgoingState")
  SResponse<String[]> queryOutgoingState();
}
